Previous Book Contents Book Index Next

Inside Macintosh: Programming With JManager /
Chapter 2 - JManager Reference / JManager Functions
Text Handling Functions /


JMGetTextLength

Returns the length of the string in a text object.

OSStatus JMGetTextLength (
const JMTextRef textRef,
UInt32* textLengthInCharacters);
textRef
The text object containing the string.
textLengthInCharacters
A pointer to an integer. On return, this parameter contains the length of the string, in characters.
function result
A result code; see "JManager Result Codes".
DISCUSSION
This function returns the string length in characters rather than bytes, since the Unicode standard uses 2 bytes per character, while standard Mac OS encodings and UTF-8 use only 1.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
10 DEC 1997